Skip to content

Clean up min block scripts - #429

Open
drebelsky wants to merge 1 commit into
stellar:mainfrom
drebelsky:clean-up-min-block-scripts
Open

Clean up min block scripts#429
drebelsky wants to merge 1 commit into
stellar:mainfrom
drebelsky:clean-up-min-block-scripts

Conversation

@drebelsky

Copy link
Copy Markdown
Contributor

Make slp_eval and measure_e2e both easier to use wrappers around one common script. slp_eval's interface is mostly restored to how it was pre 8351664. measure_e2e's interface is changed to make it easier to test against our scaling goals. Additionally, the following changes are made

  • --ingress-external-host is now a documented parameter for both scripts
  • --enable-relaxed-auto-qset-config is added to the command line since Use automatic quorum set configuration by default #396 has still not merged
  • When running multiple of sac/oz/soroswap, the return value is 0 only iff all returned 0

Make slp_eval and measure_e2e both easier to use wrappers around one
common script.
@drebelsky
drebelsky force-pushed the clean-up-min-block-scripts branch from e01bda0 to f051651 Compare August 19, 2026 19:09
@drebelsky
drebelsky marked this pull request as ready for review August 19, 2026 22:33
Copilot AI balanced review requested due to automatic review settings August 19, 2026 22:33
@drebelsky drebelsky changed the title Clean up min block scripts. Clean up min block scripts Aug 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors MinBlockTimeMixed benchmark wrappers around a shared implementation.

Changes:

  • Adds shared parsing, validation, execution, and failure aggregation.
  • Restores the streamlined slp_eval interface.
  • Expands measure_e2e with scaling and latency controls.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
scripts/base.sh Adds shared benchmark implementation.
scripts/slp_eval.sh Uses shared fixed evaluation configuration.
scripts/measure_e2e.sh Adds configurable end-to-end latency benchmarking.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/base.sh
Comment on lines +243 to +245
if ! is_nonnegative_integer "$BLOCK_TIME_MS" || [ "$BLOCK_TIME_MS" -le "$BLOCK_TIME_BAND_MS" ]; then
fail "Block time must be an integer greater than ${BLOCK_TIME_BAND_MS}ms."
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a special flag in core to ignore protocol-based bounds (4000ms min, 5000ms max), so this comment is wrong. Are we configuring the flag in this script though? It's called TESTING_IGNORE_LEDGER_TIME_UPGRADE_BOUNDS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag gets auto-configured by min block.

if self.network.missionContext.runForMinBlockTime then
t.Add("TESTING_IGNORE_LEDGER_TIME_UPGRADE_BOUNDS", true) |> ignore

let context =
{ context with
runForMinBlockTime = true

Comment thread scripts/measure_e2e.sh
return 1
fi

existing=$((key_count / TIER1_ORG_SIZE))

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Comment thread scripts/measure_e2e.sh
# Usage: sh scripts/measure_e2e.sh [SLP_EVAL_OPTION...] [-- MISSION_ARG...]
# This script runs the MinBlockTimeMixed mission with stellar-core's loadgen
# end-to-end latency metrics enabled, against the 2026-06-03 pubnet topology
# scaled out to 1000 nodes. It answers "how long does a transaction take to go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to deviate from the original proposal here #394 (comment)? It uses survey topology without the scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants